<?php 
declare (strict_types = 1);
namespace app\api\controller;
use app\common\controller\Api;
use think\Request;
class UserIndexIntegralLog extends Api
{
    //用户端-个人中心-我的积分-列表
    public function user_index()
    {
        $this->checkLogin();
        $post = param();
        $limit = $post['limit'] ?? 20;
        $data = $this->model->where([
            ['user_index_id','=',$this->userinfo['id']]
        ])->order('id desc')->paginate($limit);
        return datasuccess($data);
    }

}